public abstract class NotificationFormat {
	String message;

	public void sendNotification(String orderState) {
		createMessage();
		getContactDetails();
		if (isSubscribed()) {
			notifyUser(orderState);
		}
	}

	public abstract void orderFullfiledNotification();

	public abstract void orderCancelledNotification();

	public abstract void orderWithdrawnNotification();

	public abstract void orderPendingNotification();

	public abstract void listOrders();

	public abstract void display();

	public void createMessage() {
		message = "your order state has changed";
		System.out.println(message);
	}

	public abstract void getContactDetails();

	public boolean isSubscribed() {
		return false;
	}

	abstract void notifyUser(String OrderState);
}
